<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script type="text/javascript" src="vue.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>

<div  id="app">

    <el-table :data="orderInfo" border style="width: 100%">

        <el-table-column prop="storeGoods.gname" label="商品名">
        </el-table-column>
        <el-table-column prop="storeGoods.img" label="图片" align="center" style="width: 100%">
            <template slot-scope="scope">
                <el-image :src="scope.row.storeGoods.img" class="img" style="width: 100px;height: 100px"></el-image>
            </template>
        </el-table-column>
        <el-table-column prop="adminSo.num" label="数量">
        </el-table-column>
        <el-table-column prop="storeGoods.sprice" label="单价">
        </el-table-column>
        <el-table-column prop="adminSo.price" label="总价">
        </el-table-column>
    </el-table>
    <el-button icon="el-icon-back" circle @click="goback()"></el-button>


</div>
<script>
    var app=new Vue({
        el: "#app",
        data: {
            orderInfo: []
        },
        methods: {
            goback:function () {
                window.location.href="/cai/adminOrder.html";
            }
        }
    });
    var soid=window.location.href.split("=")[1];
    $.get("/cai/adminOrder/getOneOrder/"+soid,function (backData) {
        app.orderInfo=backData.data;
    });
</script>
</body>
</html>